<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/19
 * Time: 14:30
 */

namespace app\ext\model;

use think\Model;

class UserModel extends Model
{
    public function userInfo($id = 0)
    {
        return db('user')->where(['id'=>$id])->find();
    }
}